package com.ruoyi.vim.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.api.vo.Approval;
import com.ruoyi.api.vo.Locations;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Set;


public interface LocationMapper extends BaseMapper<Locations> {

    Boolean addlocation(@Param("lo") Locations locations);

    List<String> selectPath(String userId, String tableName, Date time);

    List<Locations> selectlocation(String trackId,String tableName);

    void updatelocation(@Param("lo") Locations locations,String tableName);

    boolean deleteBytrackId(String trackId);

    String selectUserLocation(String userId);

    Set<String> selectByCar(String userId, Long beginTime, Long endTime);

    List<String> selectTrack(String trackId);

    Set<String> selectByCars(String carInfo, Long beginTime, Long endTime);

    String selectByBeginTime(Long b);
}
